package com.lxd.com;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ListView;

import com.lxd.bitmap.task.BitmapAdapter;
import com.lxd.bitmap.task.BitmapLoadAsyncTask;
import com.lxd.com.R;


public class BitmapLoadTestActivity extends Activity implements OnClickListener{
    /** Called when the activity is first created. */
	
	private Button btn;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.mainlist);
        ImageButton button = (ImageButton)findViewById(R.id.button1);
		BitmapLoadAsyncTask task = new BitmapLoadAsyncTask(this, button);
		task.execute("http://sbnnest.com/picture/1.jpg");
        ListView list = (ListView)findViewById(R.id.listView1);
        list.setAdapter(new BitmapAdapter(this));
    }

	@Override
	public void onClick(View v) {
	        
	}
	
}